import {
  Table,
  Model,
  Column,
  DataType,
  PrimaryKey,
  AutoIncrement,
  Unique,
  AllowNull,
  Comment,
} from 'sequelize-typescript';

@Table({
  comment: '后台账号表',
  tableName: 'backstage',
})
export class Backstage extends Model {
  @PrimaryKey
  @AutoIncrement
  @Unique
  @AllowNull(false)
  @Comment('用户id')
  @Column(DataType.BIGINT)
  id: number;

  @AllowNull(false)
  @Comment('账号')
  @Column(DataType.STRING)
  account: string;

  @AllowNull(false)
  @Comment('密码')
  @Column(DataType.STRING)
  pwd: string;
}
